package cn.rslee.uaas.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import cn.rslee.uaas.entity.AccessLog;
import cn.rslee.uaas.repository.AccessLogRepository;

/**
 * 描述：
 * 
 * <pre>HISTORY
 * ****************************************************************************
 *  ID   DATE           PERSON          REASON
 *  1    2016年2月26日      rslee         Create
 * ****************************************************************************
 * </pre>
 * @author rslee
 * @since 1.0
 */
@Component("accessLogService")
public class AccessLogServiceImpl implements AccessLogService {
	
	@Resource
	private AccessLogRepository accessLogRepository;

	@Override
	public boolean save(AccessLog log) {
		accessLogRepository.save(log);
		return true;
	}

	@Override
	public List<AccessLog> findAll() {
		return accessLogRepository.findAll();
	}

	@Override
	public AccessLog get(long id) {
		return accessLogRepository.findOne(id);
	}
	

}
